﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Sockets
{
    /// <summary>
    /// 用户发出制定协议的请求处理类
    /// </summary>
    public interface IActionHandler
    {
        /// <summary>
        /// 处理请求
        /// </summary>
        /// <param name="session"></param>
        /// <param name="header"></param>
        /// <param name="body"></param>
        /// <returns></returns>
        bool Handle(ISocketIoSession session, IProtocolHeader header, byte[] body);
    }
}
